package src.stu23002120.chapter07;

import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import java.util.Arrays;

public class Demolichao26 {

        public static void main(String[] args) {
            int[] arr = { 9, 8, 3, 5, 2 };
            // 复制一个指定范围的数组
            int[] copied = Arrays.copyOfRange(arr, 1, 7);
            for (int i = 0; i < copied.length; i++) {
                System.out.print(copied[i] + " ");
            }
        }
}
